package com.hjq.mallproduct.feign;

import com.hjq.common.entity.to.SkuReductionTO;
import com.hjq.common.entity.to.SpuBoundsTO;
import com.hjq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @auther HJQ
 */
@FeignClient("mall-coupon")
public interface CouponFeign {
    /**
     * 只要数据兼容（由一一对应的参数，可以将接受的地方写成SpuBoundsEntity ）
     * @param spuBoundsTO
     * @return
     */
    @PostMapping("/mallcoupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTO spuBoundsTO);
    @PostMapping("/mallcoupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
